Tables [dbo].[AddressFormatRef]
Properties
PropertyValue
Created10:31:13 AM Tuesday, March 02, 2010
Last Modified11:39:59 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_AddressFormatRef: AddressFormatKeyAddressFormatKeyuniqueidentifier16
No
Indexes AK_AddressFormatRef_AddressFormatDesc: AddressFormatDescAddressFormatDescnvarchar(60)120
No
Formulanvarchar(255)510
No
Descriptionnvarchar(255)510
Yes
IsHandModifiedbit1
No
((0))
UpdatedOndatetime8
No
(getdate())
Foreign Keys FK_AddressFormatRef_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
IsSystemDefaultbit1
No
((0))
Foreign Keys FK_AddressFormatRef_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AddressFormatRef: AddressFormatKeyPK_AddressFormatRefAddressFormatKey
Yes
AK_AddressFormatRef_AddressFormatDescAddressFormatDesc
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AddressFormatRef_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_AddressFormatRef_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
SQL Script
CREATE TABLE [dbo].[AddressFormatRef]
(
[AddressFormatKey] [uniqueidentifier] NOT NULL,
[AddressFormatDesc] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Formula] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsHandModified] [bit] NOT NULL CONSTRAINT [DF_AddressFormatRef_IsHandModified] DEFAULT ((0)),
[UpdatedOn] [datetime] NOT NULL CONSTRAINT [DF_AddressFormatRef_UpdatedOn] DEFAULT (getdate()),
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[IsSystemDefault] [bit] NOT NULL CONSTRAINT [DF_AddressFormatRef_IsSystemDefault] DEFAULT ((0)),
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[AddressFormatRef] ADD CONSTRAINT [PK_AddressFormatRef] PRIMARY KEY CLUSTERED ([AddressFormatKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddressFormatRef] ADD CONSTRAINT [AK_AddressFormatRef_AddressFormatDesc] UNIQUE NONCLUSTERED ([AddressFormatDesc]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddressFormatRef] ADD CONSTRAINT [FK_AddressFormatRef_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[AddressFormatRef] ADD CONSTRAINT [FK_AddressFormatRef_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
Uses
Used By